home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SPACE 2
/
SPACE - Library 2 - Volume 1.iso
/
games
/
111
/
config.c
< prev
next >
Wrap
C/C++ Source or Header
|
1987-02-19
|
2KB
|
69 lines
/*
* config.c -- This defines the installation dependent variables.
* Some strings are modified later. ANSI C would
* allow compile time string concatenation, we must
* do runtime concatenation, in main.
*
* Larn is copyrighted 1986 by Noah Morgan.
*/
#include "header.h"
#ifndef LARNHOME
#define LARNHOME "/usr/games/larn/" /* normally supplied by a Makefile */
#endif
#ifndef WIZID
#define WIZID 0
#endif
/*
* All these strings will be appended to in main() to be complete filenames
*/
/* the game save filename */
char savefilename[SAVEFILENAMESIZE] = LARNHOME;
/* the score file */
char scorefile[sizeof(LARNHOME)+sizeof(SCORENAME)] = LARNHOME;
/* the logging file */
char logfile[sizeof(LARNHOME)+sizeof(LOGFNAME)] = LARNHOME;
/* the help text file */
char helpfile[sizeof(LARNHOME)+sizeof(HELPNAME)] = LARNHOME;
/* the maze data file */
char larnlevels[sizeof(LARNHOME)+sizeof(LEVELSNAME)] = LARNHOME;
/* the fortune data file */
char fortfile[sizeof(LARNHOME)+sizeof(FORTSNAME)] = LARNHOME;
/* the .larnopts filename */
#ifdef TOS
char optsfile[]="larnopts";
#else
char optsfile[128] ="/.larnopts"; /* the option file */
#endif
/* the player id datafile name */
char playerids[sizeof(LARNHOME)+sizeof(PLAYERIDS)] = LARNHOME;
#ifndef NOHOLIDAYS
/* the holiday datafile */
char holifile[sizeof(LARNHOME)+sizeof(HOLIFILE)] = LARNHOME;
#endif
char diagfile[] ="Diagfile"; /* the diagnostic filename */
#ifdef TOS
char ckpfile[] ="larn120.ckp";
#else
char ckpfile[] ="Larn12.0.ckp"; /* the checkpoint filename */
#endif
char *password ="pvnert(x)"; /* the wizards password <=32*/
#if WIZID == -1
int wisid=0; /* the user id of the only person who can be wizard */
#else
int wisid=WIZID; /* the user id of the only person who can be wizard */
#endif
char psname[PSNAMESIZE]="larn"; /* the process name */